package xyz.bali16.module.article.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@ApiModel("添加文章参数")
public class ArticleAddParam {
    @ApiModelProperty(name = "title", value = "文章标题", required = true)
    @NotEmpty(message = "文章标题不能为空")
    private String title;
    @ApiModelProperty(name = "content", value = "文章内容", required = true)
    @NotEmpty(message = "文章内容不能为空")
    private String content;
    @ApiModelProperty(name = "url", value = "文章url", required = false)
    private String url;
    @ApiModelProperty(name = "thumbnail", value = "缩略图", required = false)
    private String thumbnail;
    @ApiModelProperty(name = "status", value = "文章状态", required = false)
    private Integer status;
    @ApiModelProperty(name = "hidden", value = "文章是否可见", required = false)
    private Integer hidden;
    @ApiModelProperty(name = "fileMD5", value = "文章附件", required = false)
    private List<String> fileMD5;
    @ApiModelProperty(name = "tagNames", value = "文章标签名字", required = false)
    private String tagNames;
    @ApiModelProperty(name = "tagIds", value = "文章标签", required = false)
    private List<String> tagIds;

    @ApiModelProperty(name = "categoryId", value = "文章种类", required = false)
    private String categoryId;

    @ApiModelProperty(name = "category", value = "文章名字", required = false)
    private String category;
}
